﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AddAncestralHallItems.aspx.cs" Inherits="Users_AddAncestralHallItems" %>
<%@ Register assembly="DotNetTextBox" namespace="DotNetTextBox" tagprefix="DNTB" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <asp:PlaceHolder Visible="false" runat="server">
         <script src="../Script/jquery-1.3.2-vsdoc2.js" type="text/javascript"></script>
    </asp:PlaceHolder>
    <%=this.UI_Head(Base_CurrPath, "", "")%>
    <link rel="stylesheet" type="text/css" href="../Css/Users.css" />
    <link href="../Script/formValidator/style/validator.css" rel="stylesheet" type="text/css" />
    <script src="../Script/formValidator/jquery_last.js" type="text/javascript"></script>
    <script src="../Script/formValidator/formValidator.js" type="text/javascript"></script>
    <script src="../Script/formValidator/formValidatorRegex.js" type="text/javascript"></script>
    <script language="javascript" src="../Script/formValidator/DateTimeMask.js" type="text/javascript"></script>
    <script src="../Script/ConvertTime.js" type="text/javascript"></script> 
    <script src="../Script/province.aspx"></script>
    <script src="../Script/popup.js"></script>
    <script type="text/javascript">
        $(document).ready(function() {
        $.formValidator.initConfig({ alertmessage: false, formid: "AddAncestralHallItems_Form", onerror: function(msg) { alert(msg) } });
        $("#txtItemName").formValidator({ tipid: "txtItemNameTip", onshow: "请输入版块名称", onfocus: "版块名称不能为空", oncorrect: "输入正确" }).inputValidator({ min: 1, max: 25, empty: { leftempty: false, rightempty: false, emptyerror: "版块名称两边不能有空符号" }, onerror: "版块名称长度必须在1-25位,请确认" });
        });
        function reset()
        {
            var txtItemName=$("txtItemName");
            var Txt_UpImg=$("Txt_UpImg");
            var WebEditor1=$("WebEditor1");
            
            txtItemName.value="";
            Txt_UpImg.value="";
            WebEditor1.value="";
        }
    </script>
</head>
<body>
<form id="AddAncestralHallItems_Form" runat="server">
    <%=this.UI_TopControl()%>
    <div class="topbanner bodyList">
        <div class="body_995">
            <div class="Member_left">
                <%=this.UI_Users_loginOK()%>
                <%=this.UI_AncestralHallMangerNav(AncestralHallId)%>
            </div>
            <div class="Member_Right">
                <div class="Member_right_dht">
                    <img src="../Images/class_zc.jpg" /></div>
                <div class="Member_right_CntLIst">
           
           
<table cellpadding="0" cellspacing="0" border="0" width="100%" align=center>

  <tr>
	<td height="25" align="center" bgcolor="#E3DEBE" class="title">添加版块
</td>
    </tr>
    <tr align="center" class="tdbg" > 
      <td height="40">
          <asp:Panel ID="Panel1" runat="server" Visible="true" >
      <table width="100%" border="1" cellspacing="0" cellpadding="0" bordercolordark="#FFFFFF">
                <tr>
            <td width="18%" align="center" style="padding:4px;" ><strong>版块名称:		</strong></td>
            <td width="82%" align="left" style="padding:4px;"class="tdIndiv"  ><div><asp:TextBox ID="txtItemName"  MaxLength="30"
                    runat="server" Width="162px"></asp:TextBox></div> <DIV  id="txtItemNameTip" ></Div></td></tr>
                    <tr>
            <td width="18%" align="center" style="padding:4px;" ><strong>版块logo:		</strong></td>
            <td width="82%" align="left" style="padding:4px;"class="tdIndiv"  ><div><asp:TextBox ID="Txt_UpImg" 
                      runat="server" Width="265px" Text="images/nopic.jpg" ></asp:TextBox>&nbsp;<input type="button" class="go-wenbenkuang" value="上传图片" onclick="javascript:wy_addPhotoCat('../App/UploadAnestralHallLItemsLogo.aspx?inputobj=Txt_UpImg','宗祠版块Logo上传',500,200)"  /></div> <DIV  id="DIV1" ></Div></td></tr>
                    <tr>
            <td width="18%" align="center" style="padding:4px;" ><strong>版块说明:		</strong></td>
            <td width="82%" align="left" style="padding:4px;"class="tdIndiv"  ><div><DNTB:WebEditor ID="WebEditor1" runat="server" /></div> <DIV  id="DIV2" ></Div></td></tr>
            <tr>
                    <td align="center" style="padding:4px;" width="18%">
                        &nbsp;</td>
                    <td align="left" style="padding:4px;" width="82%">
                        <asp:Button ID="btnCreate" runat="server" onclick="btnCreate_Click" 
                            Text="添加" />&nbsp;&nbsp;&nbsp;<asp:Button ID="btnCancle" runat="server" OnClientClick="reset();return false;"
                            Text="重置" />
                    </td>
                </tr>
      </table>                    
            </asp:Panel> 
                </td>
                    </tr>
    </table>   
                </div>
            </div>
        </div>
        <br />
    </div>
</form>   
</body>
</html>
